﻿using System.Web;
using System.Web.Optimization;

namespace Huirui.Cavan.Presentation.Admin
{
    public class BundleConfig
    {
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Add(new ScriptBundle("~/bundles/global").Include(
                        "~/Scripts/Global/global.js"));

            bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
                        "~/Scripts/Global/jquery-1.4.4.min.js",
                        "~/Scripts/Global/jquery.json-2.2.min.js"));

            bundles.Add(new ScriptBundle("~/bundles/datepicker").Include(
                        "~/Scripts/DatePicker/WdatePicker.js"));

            bundles.Add(new ScriptBundle("~/bundles/edit").Include(
                        "~/Scripts/Global/selectArea.js",
                        "~/Scripts/xhEditor/xheditor-1.1.14-zh-cn.min.js"));

            bundles.Add(new ScriptBundle("~/bundles/jqueryui").Include(
                        "~/Scripts/Global/jquery.ui.*"));

            bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
                        "~/Scripts/JqueryVal/jquery.unobtrusive*",
                        "~/Scripts/JqueryVal/jquery.validate*"));

            bundles.Add(new ScriptBundle("~/bundles/fileUpload").Include(
                        "~/Scripts/FileUpload/ajaxfileupload.js",
                        "~/Scripts/FileUpload/jquery.Jcrop.js"));

            bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
                        "~/Scripts/modernizr-*"));
        }
    }
}